﻿using System;
using System.Diagnostics;

namespace Microsoft.Office.OneNote
{
    [OneNoteXmlElement("PageSettings")]
    [DebuggerDisplay("PageSettings RTL={RightToLeft} color={Color}")]
    public sealed class OneNotePageSettings : OneNoteObject
    {
        internal static readonly OneNoteProperty RightToLeftProperty = OneNoteProperty.Register(
            "RTL", typeof(Boolean), typeof(OneNotePageSettings));

        internal static readonly OneNoteProperty ColorProperty = OneNoteProperty.Register(
            "color", typeof(OneNoteColor), typeof(OneNotePageSettings));

        internal static readonly OneNoteProperty SizeProperty = OneNoteProperty.Register(
            "PageSize", typeof(OneNotePageSize), typeof(OneNotePageSettings),
            DefaultValueProvider.NewInstance<OneNotePageSize>());

        public Boolean RightToLeft
        {
            get { return GetValue<Boolean>(RightToLeftProperty); }
            set { SetValue(RightToLeftProperty, value); }
        }

        public OneNoteColor Color
        {
            get { return GetValue<OneNoteColor>(ColorProperty); }
            set { SetValue(ColorProperty, value); }
        }

        public OneNotePageSize Size
        {
            get { return GetValue<OneNotePageSize>(SizeProperty); }
        }
    }
}
    